<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      th:replace="~{common/base :: Layout(~{::content},~{::title}, _,_,_,~{::ruleMenu},_,_,_,~{::scripts},_)}">

<title>规则列表</title>

    <div class="layui-tab-brief layui-tab">
        <ul class="layui-tab-title site-demo-title">
            <li><a href="/pages/rules">规则列表</a></li>
            <li class="layui-this"><a><cite>规则详情</cite></a></li>
        </ul>
    </div>
    <div class="layui-fluid">
        <div class="layui-col-md12">
            <div class="layui-card">
                <br>
                <h1 th:text="${rule.getRuleName()}"></h1>
                <br>
                <div class="layui-card-body">
                    <div class="layui-row">
<!--                        <div class="layui-col-md4">-->
<!--                            <b>RuleKey:</b> <span th:text="${rule.getRuleId()}"></span>-->
<!--                        </div>-->
                    </div>
                        <br>
                        <!--卡片风格tab选项卡-->
                        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                            <ul class="layui-tab-title">
                                <li class="layui-this">规则信息</li>
                            </ul>
                            <div class="layui-tab-content" style="height: 100px;">
                                <div class="layui-tab-item layui-show">
                                    <table border="0" class="layui-table">
                                        <tr>
                                            <th><b>对应设备</b></th>
                                            <td th:text="${rule.getRuleToDevice()}"></td>
                                            <th><b>设备功能</b></th>
                                            <td th:text="${rule.getRulePara()}"></td>
                                        </tr>
                                        <tr>
<!--                                            <th><b>创建时间</b></th>-->
<!--                                            <td th:text="${#dates.format(rule.getRuleCreateTime(), 'yyyy-MM-dd HH:mm')}"></td>-->
                                            <th><b>规则描述</b></th>
                                            <td th:text="${rule.getRuleDescribe()}"></td>
                                        </tr>
                                        <tr>
                                            <th><b>规则条件</b></th>
                                            <td th:text="${rule.getRuleJudge()}"></td>
                                            <th><b>参数门限</b></th>
                                            <td th:text="${rule.getRuleParaThreshold()}"></td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <h1></h1>

<dd class="layui-this" th:fragment="ruleMenu">
    <a href="/pages/rules">规则列表</a>
</dd>

</html>

